package com.itheima;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.client.RestTemplate;

import java.time.LocalDateTime;
import java.util.spi.LocaleNameProvider;

@SpringBootApplication
@EnableScheduling  //开启定时任务支持
public class SpringBootMybatisApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringBootMybatisApplication.class, args);
		System.out.println("项目启动完毕:   "+ LocalDateTime.now());
	}

	@Bean  //类似于spring.xml 配置 <bean  id>
	public RestTemplate restTemplate(){
		return new RestTemplate();
	}

}
